package xml.pull_xml_api;

import javax.xml.stream.Location;

public abstract class Event {
	
	private Location location = null;
	
	public abstract boolean isChars();
	public abstract boolean isStartDoc();
	public abstract boolean isEndDoc();
	public abstract boolean isStartTag();
	public abstract boolean isEndTag();
	
	Event(Location location) {
		this.location = location;
	}
	
	public Chars asChars() {
		return (Chars) this;
	}
	
	public StartTag asStartTag() {
		return (StartTag) this;
	}
	
	public EndTag asEndTag() {
		return (EndTag) this;
	}
	
	public Location getLocation() {
		return location;
	}
	
	void setLocation(Location location) {
		this.location = location;
	}
}
